package com.oracle.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oracle.application.entity.Orders;
import com.oracle.application.entity.vo.OrderConfirmVo;
import com.oracle.application.entity.vo.OrderSubmitVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 莉丝妲黛
 * @since 2021-06-24
 */
public interface IOrdersService extends IService<Orders> {
    /**
     * 创建一个订单
     * @return
     */
    OrderConfirmVo createOrderConfirm();

    /**
     *提交订单
     * @return
     */
    Map<String,Object> submitOrder(OrderSubmitVo orderSubmitVo);

    /**
     * 修改订单状态
     * @param OrderSn 根据订单唯一编号
     * @return 受影响的行数
     */
    int updateOrderStatus(String OrderSn);


}
